import { isCodeMessage } from "@/api/config"

/**
 * @author: 小佘佘🦀
 * @description: 删除用户
 * @param {number} id
 * */
export const deleteTeamUser = async (id: number) => {

    const response = await fetch(`/api-backend/api/team/dteamuser?id=${id}`, {
        method: "POST",
        headers: {
            "content-type": "application/x-www-form-urlencoded",
        },
        mode: "no-cors",
        redirect: "manual"
    })

    return isCodeMessage(response)
}